package com.zretc.blog.dao;

import com.zretc.api.pojo.Blog;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;


public interface BlogMapper {
    void insert (Blog blog);
    void deleteBlog (Blog blog);
    void updateBlogByBlogId(Blog blog);
    Blog getBlogByBlogId(Integer Blogid);
    Integer getCount(String blogTitle);

    ArrayList<Blog> getBlogByBlogTitle(@Param("blogTitle") String blogTitle,@Param("startIndex") Integer startIndex,
                                       @Param("pageSize")Integer pageSize);




    ArrayList<Blog> getBlogByUserName(String username);



//    SysUser getBlogByUserName(String username );




}
